<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeBehind="categoryedit.aspx.cs" Inherits="JTC.MiniCommerce.Web.admin.categoryedit" Title="Untitled Page" %>
<%@ MasterType VirtualPath="~/admin/admin.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="mainContentRegion">
  <div id="admin_centercontent">
    <div class="sectionHeader"><asp:Label ID="lblProductCategories" runat="server" /></div><br />
    <table id="categoryTable">
      <tr>
        <td>
          <asp:Panel ID="pnlCurrentCategories" runat="server">
            <asp:TreeView ID="tvCategory" runat="server" DataSourceID="xmlDataSource" OnSelectedNodeChanged="Category_Selected" CollapseImageUrl="~/App_Themes/MiniCommerce/images/icons/folderopen.gif" ExpandImageUrl="~/App_Themes/MiniCommerce/images/icons/folderclosed.gif" NoExpandImageUrl="~/App_Themes/MiniCommerce/images/icons/folderclosed.gif" ExpandDepth="FullyExpand">
              <DataBindings>
                <asp:TreeNodeBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TextField="Text" ValueField="Value" ToolTipField="ToolTip" />
              </DataBindings>
            </asp:TreeView>
            <asp:XmlDataSource ID="xmlDataSource" TransformFile="~/transforms/categoryMenu.xslt" XPath="MenuItems/MenuItem" runat="server" />
          </asp:Panel>        
        </td>
        <td>
          <asp:Panel ID="pnlEditCategory" runat="server">
            <asp:Label ID="lblCategoryId" runat="server" Visible="false" />
            <asp:Label ID="lblParentCategory" runat="server" CssClass="label" /><br />
            <asp:DropDownList ID="ddlParentCategory" runat="server" CssClass="fwdropdownlist" />&nbsp;<asp:HyperLink ID="hlParentCategoryHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image1" runat="server" SkinID="help" /></asp:HyperLink><br /><br />
            <asp:Label ID="lblName" runat="server" CssClass="label" /><br />
            <asp:TextBox ID="txtName" runat="server" CssClass="textbox" />&nbsp;<asp:HyperLink ID="hlCategoryNameHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image2" runat="server" SkinID="help" /></asp:HyperLink><br /><br />
            <asp:Label ID="lblImageFile" runat="server" CssClass="label" /><br />
            <asp:TextBox ID="txtImageFile" runat="server" CssClass="longtextbox" />&nbsp;<asp:HyperLink ID="hlImageSelector" runat="server" CssClass="submodal-800-355" Text=". . ." />&nbsp;<asp:HyperLink ID="hlCategoryImageFileHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image3" runat="server" SkinID="help" /></asp:HyperLink><br /><br />
            <div class="verticalalign">
              <asp:Label ID="lblDescription" runat="server" CssClass="label" />&nbsp;<asp:HyperLink ID="hlCategoryDescriptionHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image4" runat="server" SkinID="help" /></asp:HyperLink><br />
            </div>
            <asp:TextBox ID="txtDescription" runat="server" CssClass="multilinetextbox" MaxLength="250" TextMode="MultiLine" /><br /><br />
            <asp:Button ID="btnSave" runat="server" CssClass="button" OnClick="btnSave_Click"/>&nbsp;&nbsp;<asp:Button ID="btnReset" runat="server" CssClass="button" OnClick="btnReset_Click" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnDelete" runat="server" CssClass="button" Visible="false" OnClick="btnDelete_Click" />
          </asp:Panel>        
        </td>
      </tr>    
    </table>
  </div>
</div>
</asp:Content>
